'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  // 4001  医院信息获取  appointment/getHospitalInformation
  router.post('/appointment/getHospitalInformation', controller.appointment.getHospitalInformation);

  // 4002  科室信息获取  appointment/listDepartment
  router.post('/appointment/listDepartment', controller.appointment.listDepartment);

  // 4003  医生信息获取  appointment/listDoctor
  router.post('/appointment/listDoctor', controller.appointment.listDoctor);

  // 4004  科室医生搜索  appointment/queryDeptAndDoctor
  router.post('/appointment/queryDeptAndDoctor', controller.appointment.queryDeptAndDoctor);

  // 4005  排班信息获取  appointment/listNumber
  router.post('/appointment/listNumber', controller.appointment.listNumber);

  // 4006  预约提交      appointment/confirmAppointment
  router.post('/appointment/confirmAppointment', controller.appointment.confirmAppointment);

  // 4007  预约列表获取  appointment/listAppointmentWait
  router.post('/appointment/listAppointmentWait', controller.appointment.listAppointmentWait);

  // 4008  预约取消      appointment/appointmentPayCancel
  router.post('/appointment/appointmentPayCancel', controller.appointment.appointmentPayCancel);

  // // 4009  预约挂号预结算  appointment/paymentBudget
  // router.post('/appointment/paymentBudget', controller.appointment.paymentBudget);

  // // 4010  预约挂号支付通知  appointment/appointmentPay
  // router.post('/appointment/appointmentPay', controller.appointment.appointmentPay);

  // // 4011  签到取号列表获取  takenumber/listTakeNumber
  // router.post('/takenumber/listTakeNumber', controller.takenumber.listTakeNumber);

  // // 4012  挂号单获取  takenumber/getRegistrationForm
  // router.post('/takenumber/getRegistrationForm', controller.takenumber.getRegistrationForm);

  // // 4013  取号付费  takenumber/takenumber
  // router.post('/takenumber/takenumber', controller.takenumber.takenumber);

  // // 4014  停诊通知  appointment/getCanceledWorks
  // router.post('/appointment/getCanceledWorks', controller.appointment.getCanceledWorks);

  // // 4015  就诊状态同步  appointment/syncOrderState
  // router.post('/appointment/syncOrderState', controller.appointment.syncOrderState);

  // // 4016  退号通知  appointment/refundNotice
  // router.post('/appointment/refundNotice', controller.appointment.refundNotice);

  /**
   * swagger
   */
  app.router.redirect('/swagger', '/swagger-ui.html', 302);
};
